#!/usr/bin/env python
# -*- coding: utf-8 -*-

from gaeo.controller import Controller
from application import models
import logging

categories = ['General', 'Open API', 'Platform', 'Application']

class Welcome(Controller):
    def index(self):
        self.view.forums = []
        for c in categories:
            self.view.forums.append({
                'category': c, 
                'items': models.Forum.get_by_category(c)
            })